package cn.spike.rockcc.errorenum;

public enum GlobalExceptionCode {
    SYSTEM_EXCEPTION("系统错误","-1000"),
    USER_EXCEPTION("用户服务错误","-2000"),
    PARAM_EXCEPTION("参数错误","-2001"),
    REGISTER_NULL_EXCEPTION("注册信息不能为空","-2002"),
    REGISTER_RE_EXCEPTION("该手机号已注册","-2003"),
    IMAGECODE_TIMEOUT_EXCEPTION("图形验证码已过期,请重新获取","-2004"),
    IMAGECODE_FALSE_EXCEPTION("图形验证码错误,请重新获取","-2005"),
    PHONECODE_REGET_EXCEPTION("请勿重复获取短信验证码","-2006"),
    USERFEIGNCLIENT_EXCEPTION("用户服务连接超时","-2007"),
    PHONECODE_TIMEOUT_EXCEPTION("短信验证码已过期","-2008"),
    PHONECODE_FALSE_EXCEPTION("短信验证码错误","-2009"),
    UAA_EXCEPTION("认证中心连接超时","-3000"),
    IP_BLOCK_EXCEPTION("违规操作,已限制IP","-2010"),
    SEARCH_EXCEPTION("搜索服务连接超时","-3000"),
    INVITATION_CODE_EXCEPTION("邀请码填写错误","-2011"),
    INVITATION_CODE_USED("邀请码已被使用","-2011"),
    STATION_MQ_EXCEPTION("推送站内信失败","-2012"),
    NOT_COURSE_EXCEPTION("暂无该课程信息","-2012"),
    MEDIA_SERVER_EXCEPTION("视频服务连接超时","-4000"),
    NOT_MEDIA_EXCEPTION("暂无该视频信息","-4001"),
    NO_BUY_COURSE_EXCEPTION("请先购买该课程","-4002"),
    COURSE_TIME_OUT_BUY_EXCEPTION("您好，您购买的该课程已过期","-4003"),
    COURSE_ID_EXCEPTION("课程信息有误,请重新下单","-4004"),
    ORDER_RETAKE_EXCEPTION("订单已生成或已超时,请查看个人订单","-4004"),
    COURSE_EXCEPTION("课程服务连接超时","-5000"),
    ORDER_MQ_SEND_EXCEPTION("订单消息投递异常","-6001"),
    PAY_ORDER_EXCEPTION("支付申请繁忙,请等待或稍后再试","-6002"),
    PAY_STATUS_EXCEPTION("支付状态错误,请确认订单信息后重试","-6003"),
    ALI_PAY_APPLY_EXCEPTION("支付宝支付申请异常","-6004"),
    ORDER_CONSUME_EXCEPTION("订单编号接收异常","-6005"),
    NOT_HAVE_ORDER_EXCEPTION("不存在该订单信息","-6006"),
    PAY_FLOW_EXCEPTION("支付订单编号有误,查找不到订单流水信息","-6007"),
    ACTIVITY_EXCEPTION("秒杀活动信息有误,请维护","-6008"),
    ACTIVITY_IS_OVER_EXCEPTION("该秒杀活动已结束","-6009"),
    NOT_HAVE_KILLCOURSE_EXCEPTION("该秒杀活动下并无秒杀课程,请先维护数据","-6010"),
    REDISSON_EXCEPTION("添加信号限制失败,请重新发布秒杀活动","-6011"),
    KILL_COURSE_EXCEPTION("没有课程的秒杀信息噢","-6012"),
    RE_BUY_KILL_EXCEPTION("用户限量购买一个,没啦","-6013"),
    NOT_HAVE_KUCUN("抢完啦！没啦！","-6014"),
    REDIS_ORDER_NOT_FOUND("订单编号信息有误,redis中没有找到,请维护","-6014");



    String message;
    String code;

    GlobalExceptionCode(String message, String code) {
        this.message = message;
        this.code = code;
    }
    GlobalExceptionCode(String code) {
        this.code = code;
    }


    GlobalExceptionCode() {
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
